import {ipcMain} from "electron";
import {IpcResult} from "../../src/model/IpcResult.ts";

export const eventInit = () => {

  ipcMain.handle('event1', (event, msg: string) => {
    console.log('event1 msg: ',msg)
    return Promise.resolve(IpcResult.success())
  });

}